<!--
 * @Descripttion: 
 * @Author: 夜雨
 * @Email: 448408740@qq.com
 * @Date: 2019-12-02 15:46:47
 * @LastEditTime : 2019-12-23 13:23:27
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <a href="http://www.work.site/a.html">test</a>
    <!-- <script>
    (function() {
    var us = document.createElement("script");
    us.src = "us.js";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(us, s);
    })();    
    </script> -->
    <form action="">
    <div type="submit">22</div>
    <div type="submit2">33</div>
</form>
<script>
var a = document.querySelector('div[type="submit"],button[type="submit"],input[type="image"]');
a.onclick = function(){
    alert();
}
</script>
</body>

</html>